|
|
Hi,
how about adding an limits and hints system?
Let me explain on example,
photons count *must* be >= 0, so its limits are 0 .. about 2^32
Any other value will cause should stop render with error mesage.
For IOR, usualy values are >= 1, but for artistics reasons any value could
be used, so there is no limit, but there is a hint - 1.0 .. 10.0 (other
values will cause Warining, or rather Hints - new stream type in addition
to debug, warning,...)
Limits could be placed both in code so that renderer will inform about them
at parsing-time, and in documentation.
Maybe it would be a good idea to start from documentation, since especialy
newusers could be a bit confused - I think every value should be described
in documentation by default value, suggested values, and valid values
limits.
--
http://www.raf256.com/3d/
Rafal Maj 'Raf256', home page - http://www.raf256.com/me/
Computer Graphics
Post a reply to this message
|
|